package com.gt.login.activities;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ListView;
import android.widget.TextView;

import com.gt.login.Constants;
import com.gt.login.ListFilesOnlyArrAdapter;
import com.gt.login.R;

public class TestActivity  extends Activity{
//	final String OP_DATA_FOLDER = Constants.OP_DATA_PATH;
	List<String> users;
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.browserview);
		TextView tv=(TextView)findViewById(R.id.welcomeMsgLBL);
		tv.setText("kfjlksdflsd");
		showList();

	}
	private void showList() {
//		File[] files = new File(OP_DATA_FOLDER).listFiles();
//				List<String> fileList = new ArrayList<String>();
//		for (File f : files) {
//			fileList.add(f.getName());
//			System.out.println(f.getName());
//		}
		users=new ArrayList<String>();
		users.add("User1");
		users.add("User2");
		users.add("User3");
		
		ListView lv=(ListView)findViewById(R.id.alist);
		lv.setAdapter( new ListFilesOnlyArrAdapter(this, R.layout.list_layout, users));
	}
}
